﻿<cfsilent>
	<cfscript>
		
		jsonAdvice = getProperty("serviceFactory").getBean("jsonAdvice");
		
		/* 回执信息 */
		response = structNew();
		structInsert(response, "success", false, true);
		
		/* 教室代码 */
		clsroomId = event.getArg("CRID");
		
		transaction {
			
			sql = "DELETE FROM t_classroom WHERE cr_id = :clsroomId ";
			
			queryObj = new query( datasource=application.dnsMaster );
			queryObj.addParam( name="clsroomId", value=clsroomId, cfsqltype="cf_sql_char" );
			queryObj.execute( sql=sql );

			structInsert(response, "success", true, true);
			structInsert( response, "ClassroomID", clsroomId );

		}
		
	</cfscript>	
</cfsilent><cfoutput>#jsonAdvice.encode(data:response, stringNumbers:true)#</cfoutput>